A coming assignment will be to implement a Client/Server RMI application with persistence.  "Persistence" with Java means that Java Objects are stored in a database, and Hibernate is the technology we will use to make that happen.

This week's online activity is about the Hibernate Object Relational Mapping Framework

 

    Complete the following parts of the Hibernate Tutorial at Tutorials Point:

http://www.tutorialspoint.com/hibernate/index.htm

Just the following pages (see the page navigation on the left):

ORM Overview

Hibernate Overview

Hibernate Architecture

Hibernate Configuration

Hibernate Sessions

Hibernate Persistent Class

 

    Complete the digital activity at the following URL:

http://www.dactivity.com/?l=1uoKPNYmBq


Question 1
Place the Hibernate coding steps/method calls in order.
	Entity Class Annotations
	Load Hibernate Config
	Build Session Factory
	getCurrentSession()
	beginTransaction()
	save()
	commit()

Question 2
Place the RMI coding steps/method calls in order.
	Interface
	Implementation
	Registry
	rebind()
	lookup()
	Invoke Remote Method

Question 3
Place the MultiThreading statements/method calls in order.
	Executors.newCachedThreadPool()
	new Runnable(){...}
	execute()
	run()
	shutdown()

Question 4
Place the Java Networking statements/method calls in order.
	ServerSocket ss = new ServerSocket(port)
	Socket cs = ss.accept()
	Socket s = new Socket(IP,port)
	cs.getOutputStream()
	cs.getInputStream()
	s.getOutputStream().write("test")